import Vue from 'vue';
import { Icon } from 'ant-design-vue';
import myIcon from "@public/iconfont/iconfont.js";
import mobileIcon from "@public/mobileIconfont/iconfont.js";
import customIcon from "@public/customIcon/iconfont.js"
let icons = [{ "name": "my-icon", icon: myIcon },
{ "name": "mb-icon", icon: mobileIcon },
{ "name": "custom-icon", icon: customIcon }
];
icons.forEach(item => {
    const icon = Icon.createFromIconfontCN({
        scriptUrl: item.icon
    });
    console.log(icon)
    //引用
    Vue.component(item.name, icon);
});


